<?php
/**
 * Apprentice CMS
 */

class Admin_ModuleController extends Zend_Controller_Action 
{
	public function talkAction(){
		$server = new Zend_Rest_Server();
		$server->setClass('Admin_Model_ModuleBAO');
		$server->handle();
	}	
	public function listAction() 
	{
		/*$db = new Admin_Model_ModuleBAO();
		$data = $db->getAllRows();
		print_r($data);*/
		/*$file1 = APPLICATION_PATH .'\modules\admin\install\install.sql';
		//$file1 = APPLICATION_PATH .'\modules\admin\install\uninstall.sql';
		$fp=fopen($file1,"r"); 
		$contents = fread ($fp, filesize($file1)); 
		fclose($fp); 
		$rst= explode("$$", $contents);	*/
		$mang='C:\xampp\htdocs\Apprentice_CMS\application\modules\category\uninstall\uninstall.sql';
		$db = new Admin_Model_ModuleBAO();
		$db->uninstall($mang);
				
	
	}
	

}


